// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   SetLocaleAction.java

package org.fiel.struts.actions;

import java.io.IOException;
import java.util.Locale;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.http.*;
import org.apache.struts.action.*;

public class SetLocaleAction extends Action
{

    public SetLocaleAction()
    {
    }

    public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
        throws IOException, ServletException
    {
        String localeId = request.getParameter("locale");
        Locale locale = new Locale(localeId);
        request.getSession().setAttribute("org.apache.struts.action.LOCALE", locale);
        ActionForward retorno = mapping.findForward("success");
        return retorno;
    }
}
